package handleds;

import book.Book;
import book.BookList;
import bookoperation.IOperation;

public abstract class Common {
    //名字
    protected String name;

    //构造方法，带有一个参数nane
    public Common(String name) {
        this.name = name;
    }
    //定义了一个接口数组
    protected IOperation[] iOperations;

    //抽象方法menu()
    public abstract int menu();

    public void show(int choice, BookList bookList) {
        iOperations[choice].show(bookList);
    }
}
